export interface ResponseData {
  code: number
  message: string
  ok: boolean
}

// 分类ts类型
export interface categoryObj {
  id: number | string
  name: string
  category1Id?: number
  category2Id?: number
}

// 分类接口返回数据类型
export interface categoryResponseData extends ResponseData {
  data: categoryObj[]
}

// 属性值ts类型
export interface attrValue {
  id?: number | string
  valueName: string
  attrId?: number
}

// 存储属性值数组
export type attrValueList = attrValue[]

// 属性对象ts类型
export interface attr {
  id?: number | string
  attrName: string
  categoryId: number | string
  categoryLevel: number
  attrValueList: attrValueList
}
// 属性数组ts类型
export type attrList = attr[]

// 属性接口返回数据类型
export interface attrResponseData extends ResponseData {
  data: attrList
}
